package com.eat.fish_service.entity.Dao;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author LWB
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Fish对象", description="")
public class Fish implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "鱼的id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "所属鱼缸id")
    private Long pid;

    @ApiModelProperty(value = "入缸年龄，以月为单位")
    private Integer inAge;

    @ApiModelProperty(value = "鱼的昵称")
    private String name;

    @ApiModelProperty(value = "鱼的类型")
    private String type;

    @ApiModelProperty(value = "鱼的照片")
    private String fishImg;

    @ApiModelProperty(value = "逻辑删除 1：已删除， 0：未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "疾病类型")
    private String illType;

    @ApiModelProperty(value = "状态，良好、生病、死亡")
    private String state;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;


}
